package com.smile.commons.json;

import com.alibaba.fastjson2.JSON;

public class JsonValidator {

    public static Boolean isValidJson(String json) {
        try {
            JSON.parseObject(json);
            return true;
        }catch (Exception e){
            return false;
        }
    }

}
